<?php if ($pager->haveToPaginate()): ?>
    <div class="pagination">
        <ul class="pages_ul">
            <a class="front" href="<?php echo url_for($url) ?>?page<?php echo $kind?>=1&page<?php echo $previousKind?>=<?php echo $previousPager->getPage() ?>">
                <img src="<?php echo image_path('Buttons/bt_first.png') ?>" alt="First page" title="First page" onmouseover="this.src='<?php echo image_path('Buttons/bt_first_hov.png') ?>';" onmouseout="this.src='<?php echo image_path('Buttons/bt_first.png') ?>';"/><li></li>
            </a>
            <a class="front" href="<?php echo url_for($url) ?>?page<?php echo $kind?>=<?php echo $pager->getPreviousPage() ?>&page<?php echo $previousKind?>=<?php echo $previousPager->getPage() ?>">
                <img src="<?php echo image_path('Buttons/bt_previous.png') ?>" alt="Previous page" title="Previous page" onmouseover="this.src='<?php echo image_path('Buttons/bt_previous_hov.png') ?>';" onmouseout="this.src='<?php echo image_path('Buttons/bt_previous.png') ?>';"/><li></li>
            </a>

            <?php foreach ($pager->getLinks() as $page): ?>
                <?php if ($page == $pager->getPage()): ?>
                    <a href="<?php echo url_for($url) ?>?page<?php echo $kind?>=<?php echo $page ?>&page<?php echo $previousKind?>=<?php echo $previousPager->getPage() ?>"><li class="bt_page"><span class="pager_bt_txt"><?php echo $page ?></span></li></a>
                <?php else: ?>
                    <a href="<?php echo url_for($url) ?>?page<?php echo $kind?>=<?php echo $page ?>&page<?php echo $previousKind?>=<?php echo $previousPager->getPage() ?>"><li class="bt_page"><span class="pager_bt_txt"><?php echo $page ?></span></li></a>
                <?php endif; ?>
            <?php endforeach; ?>

            <a href="<?php echo url_for($url) ?>?page<?php echo $kind?>=<?php echo $pager->getNextPage() ?>&page<?php echo $previousKind?>=<?php echo $previousPager->getPage() ?>">
                <img src="<?php echo image_path('Buttons/bt_next.png') ?>" alt="Next page" title="Next page" onmouseover="this.src='<?php echo image_path('Buttons/bt_next_hov.png') ?>';" onmouseout="this.src='<?php echo image_path('Buttons/bt_next.png') ?>';"/>
            </a>
            <a href="<?php echo url_for($url) ?>?page<?php echo $kind?>=<?php echo $pager->getLastPage() ?>&page<?php echo $previousKind?>=<?php echo $previousPager->getPage() ?>">
                <img src="<?php echo image_path('Buttons/bt_last.png') ?>" alt="Last page" title="Last page" onmouseover="this.src='<?php echo image_path('Buttons/bt_last_hov.png') ?>';" onmouseout="this.src='<?php echo image_path('Buttons/bt_last.png') ?>';"/>
            </a>
        </ul>
    </div>
<?php endif; ?>

<div class="pagination_desc">
    <strong><?php echo count($pager) ?></strong> Total records

    <?php if ($pager->haveToPaginate()): ?>
        - page <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>
    <?php endif; ?>
</div>